


typedef  unsigned char u_char ;

extern void nand_calculate_ecc (const u_char *dat, u_char *ecc_code);
extern signed char nand_correct_data (u_char *dat, u_char *read_ecc, u_char *calc_ecc);

